﻿@using DM.Tests;
@model DM.Web.Models.Test.CreateOrEditTestModel;

@{ 
    Layout = null;
}

<form id="fm" method="post" novalidate class="fm">
    @if (Model.IsEditMode)
    {
        <input type="hidden" name="id" value="@Model.Id" />
    }
    <table>
        <tr>
            <td>名字</td>
            <td><input class="easyui-textbox" name="name" data-options="required:true" value="@Model.Name"/></td>
        </tr>

        <tr>
            <td>年龄</td>
            <td><input class="easyui-textbox" name="age" value="@((int)Model.age)"/></td>
        </tr>
    </table>

</form>